



# class mylogin():
#     def __init__(self,driver):
#         self.driver=driver
#     def login(self):
#         self.driver.get('http://101.133.169.100/yuns/index.php')
#         self.driver.find_element_by_xpath('//a[text()="登录"]').click()
#         self.driver.find_element_by_id('text').send_keys('18569505945')
#         self.driver.find_element_by_id('password').send_keys('123456')
#         self.driver.find_element_by_name('submit').click()
import time

from selenium import webdriver
class mylogin():
    def __init__(self, driver):
        self.driver = driver


    def login(self):
        time.sleep(3)
        self.driver.get('http://101.133.169.100/yuns/index.php')
        self.driver.find_element_by_xpath('//a[text()="登录"]').click()
        self.driver.find_element_by_id('text').send_keys('18569505945')
        self.driver.find_element_by_id('password').send_keys('123456')
        self.driver.find_element_by_name('submit').click()
        time.sleep(3)
#     def __init__(self,driver):
#         self.driver=driver
#     def login(self):
#         # self.driver.get('http://101.133.169.100/yuns/index.php')
#         self.driver.find_element_by_xpath('//a[text()="登录"]').click()
#         self.driver.find_element_by_id('text').send_keys('18569505945')
#         self.driver.find_element_by_id('password').send_keys('123456')
#         self.driver.find_element_by_name('submit').click()
#
# if __name__ == '__main__':
#
#     driver = webdriver.Firefox()
#     mylogin(driver).login()